package com.chen.dbHelper;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;

public class DatebaseTest {
	private DBHelper dbHelper;
	
	public DatebaseTest(DBHelper dbHelper){
		this.dbHelper = dbHelper;
	}

	public void insert(String name,String password){
		SQLiteDatabase sdb = dbHelper.getWritableDatabase();
//		sdb.execSQL("insert into users(name,password) values("+name+","+password+")");
		ContentValues cv = new ContentValues();
		cv.put("name", name);
		cv.put("password", password);
		sdb.insert("user", "id", cv);
	}
}
